// ArticleDoc.cpp : implementation of the CReportDoc class
//

#include "StdAfx.h"
#include "ReportDoc.h"
#include "morph_dict/common/utilit.h"



#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


/////////////////////////////////////////////////////////////////////////////
// CReportDoc

IMPLEMENT_DYNCREATE(CReportDoc, CRichEditDoc)

BEGIN_MESSAGE_MAP(CReportDoc, CRichEditDoc)
	//{{AFX_MSG_MAP(CReportDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CReportDoc construction/destruction

CReportDoc::CReportDoc()
{
}

CReportDoc::~CReportDoc()
{
}

/*void CReportDoc::InitFonts()
{
	CRichEditCtrl& C =  GetView()->GetRichEditCtrl();
	C.SetReadOnly(TRUE);
	C.SetSel (0, -1);
	CHARFORMAT cf;
	C.GetSelectionCharFormat (cf);
	strcpy (cf.szFaceName,"Courier");
	cf.bCharSet = RUSSIAN_CHARSET;
	C.SetSelectionCharFormat (cf);
	C.SetSel (0, 0);
    C.Invalidate();

};
*/


CRichEditCntrItem* CReportDoc::CreateClientItem(REOBJECT* preo) const
{
	// cast away constness of this	
	return new CRichEditCntrItem(preo, (CReportDoc*) this);
}


/////////////////////////////////////////////////////////////////////////////
// CReportDoc diagnostics

#ifdef _DEBUG
void CReportDoc::AssertValid() const
{
	CRichEditDoc::AssertValid();
}

void CReportDoc::Dump(CDumpContext& dc) const
{
	CRichEditDoc::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CReportDoc commands



